<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
</head>
<body>
    <!-- 宿主文件 -->
    <div id="app">
        <h2 :title="title">
            <!-- 插值表达式！ -->
            {{title}}
        </h2>
    </div>

    <script src="../js/vue.js"></script>
    <script>
        // 1、创建Vue的实例
        const app = new Vue({
            el: "#app", 
            data() {
                return {
                    title: '开课吧，购物车!'
                }
            },
        })
        setTimeout(function() {
            app.title = "muaa..., vue"
        }, 1000)
    </script>
</body>
</html>